package com.gengine.resource.info
{
	import flash.display.*;
	
	public class ImageInfo extends ResourceInfo
	{
		private var _bitmapData:BitmapData;
		
		public function ImageInfo(param1:Object = null)
		{
			super(param1);
			
		}
		
		public function get bitmapData() : BitmapData
		{
			return this._bitmapData;
		}
		
		override public function set data(param1:Object) : void
		{
			super.data = param1;
			this._bitmapData = param1 as BitmapData;
			
		}
		
		override public function dispose() : void
		{
			this._bitmapData = null;
			isLoaded = false;
			isLoading = false;
			super.dispose();
			
		}
		
		override protected function unload(param1:LoaderInfo) : void
		{
			var _loc_2:* = param1.content as Bitmap;
			if (_loc_2 && _loc_2.bitmapData)
			{
				_loc_2.bitmapData.dispose();
				_loc_2.bitmapData = null;
			}
			_loc_2 = null;
			super.unload(param1);
			
		}
		
	}
}
